package com.tzpay.tzpay.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.tzpay.tzpay.R;


/**
 * 弹出框
 *
 * @author notreami
 */
public class DataLoadingDialog extends Dialog {
    private TextView data_loading_msg;

    public DataLoadingDialog(Context context) {
        super(context, R.style.loadingdialog);
    }

    public DataLoadingDialog(Context context, int theme) {
        super(context, theme);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.data_loading);
        data_loading_msg = (TextView) findViewById(R.id.data_loading_msg);
    }

    public void setMsg(String text) {
        data_loading_msg.setText(text);
    }

}
